-- GENERATED SPELL FOR [Crimson Monk] --


function spell0_11043(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11043', 6340, 1)
end

function spell1_11043(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11043', 577, 1)
end

function Sorts_11043(pUnit, Event)
local choix_sorts_11043 = math.random(0, 1)
if choix_sorts_11043 == 0 then
pUnit:RegisterEvent('spell0_11043', 1, 1)
end
if choix_sorts_11043 == 1 then
pUnit:RegisterEvent('spell1_11043', 1, 1)
end
end

function mob11043_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11043', math.random(1500, 3000), 1)
end

function mob11043_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11043_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11043_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11043, 1, 'mob11043_Action')
RegisterUnitEvent(11043, 2, 'mob11043_Leave')
RegisterUnitEvent(11043, 3, 'mob11043_Kill')
RegisterUnitEvent(11043, 4, 'mob11043_Die')
